'''
商机详情页
'''

from selenium.webdriver.common.by import By
from page.base_page import BasePage

class SjXiangQingPage(BasePage):
    url="http://192.168.1.83/crm/index.php?m=business&a=view&id="
    #定位器
    sj_name=(By.CSS_SELECTOR,"#tab1 > div.back_box.container3.mar-top > table.table.table-hover > "
                             "tbody > tr:nth-child(4) > td:nth-child(4) > span")

    def get_sj_name(self):
        '''获取商机名称'''
        return self.driver.find_element(*self.sj_name).text.strip()